package org.ala.tiktools.rpc.msg.login;

import org.ala.tiktools.rpc.msg.RpcMsg;
import org.ala.tiktools.rpc.msg.RpcMsgHead;
import org.ala.tiktools.rpc.msg.RpcMsgHeadTypeEnums;

import java.io.Serializable;

/**
 * @author ala
 * @date 2025-04-04 23:36
 */
public class RpcLoginMsg extends RpcMsg<RpcLoginMsg> implements Serializable {
    public final static long serialVersionUID = 1;

    /**
     * 消息体
     */
    protected RpcLoginBody body;

    public static RpcLoginMsg build() {return new RpcLoginMsg().head(RpcMsgHead.build().type(RpcMsgHeadTypeEnums.LOGIN));}

    public RpcLoginBody getBody() {
        return body;
    }

    public void setBody(RpcLoginBody body) {
        this.body = body;
    }

    public RpcLoginMsg body(RpcLoginBody body) {
        setBody(body);
        return this;
    }
}
